Skip to content

商户单号查询转账单

根据商户单号查询商家转账订单的详细信息。

请求参数类型描述
out_bill_nostring商户单号
queryobject声明请求的查询参数
sub_mchidstring二级商户号
php
$instance->v3->ecommerce->mchTransfer->transferBills->outBillNo->_out_bill_no_->getAsync([
  'out_bill_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}')->getAsync([
  'out_bill_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}']->getAsync([
  'out_bill_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->mchTransfer->transferBills->outBillNo->_out_bill_no_->get([
  'out_bill_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}')->get([
  'out_bill_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}']->get([
  'out_bill_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
mchidstring服务商商户号
sub_mchidstring二级商户号
out_bill_nostring商户单号
transfer_bill_nostring微信转账单号
appidstring服务商AppID
transfer_scene_idstring转账场景ID
statestring单据状态
transfer_amountnumber转账金额
transfer_remarkstring转账备注
fail_reasonstring失败原因
openidstring收款用户OpenID
user_namestring收款用户姓名
create_timestring单据创建时间
update_timestring状态变更时间

参阅 官方文档

Published on the GitHub by TheNorthMemory